package com.sheep.Pattern.Factory.factorys.factory;

import com.sheep.Pattern.Factory.products.Message;
import com.sheep.Pattern.Factory.products.product.Email;
import com.sheep.Pattern.Factory.factorys.MessageFactory;

/**
 * 工厂实现类 EmailFactory
 * @author sheep
 */
public class EmailFactory implements MessageFactory {
    @Override
    public Message createMessage() {
        return new Email();
    }
}
